package com.gxy.learn.design.model.construction.decorator;

/**
 * @description: 炒饭 （具体构建角色）
 * @author: gaoxueyong
 * @Date: 2022/11/7 19:22
 */
public class FiredRice extends FastFood{
    public FiredRice() {
        super(10,"炒饭");
    }

    /**
     * 计算价格
     *
     * @return double
     * @Author gaoxueyong
     * @Date 7:21 下午 2022/11/7
     * @Param []
     **/
    @Override
    public double cost() {
        return getPrice();
    }
}
